package com.yykj.drup.server.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yykj.drup.server.model.DoctorProduct;
import com.yykj.drup.server.model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zengg
 * @since 2022-03-14
 */
@Mapper
public interface DoctorProductDao extends BaseMapper<DoctorProduct> {

    /**
     *
     * @param doctorId
     * @param categoryType
     * @return
     */
    List<Product> findProductsByDoctorId(@Param("doctorId") String doctorId, @Param("categoryType") Integer categoryType);

}
